/**
 * 
 */

/**
 * @author PRosa
 * 
 */
public class Sum10Reciprocals {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		float result = sumToN(10);
		
		System.out.println( result);
	}
	private static float sumToN(int n) {
		float result = 0;
		for (int i = 1; i <= n; i++) {
			result += Math.pow(i, -1d);
		}
		return result;
	}

}
